Skip to content

feat(templates): add Vercel to Next.js + SaaS starters#3

Open
MasonStation wants to merge 1 commit intomainfrom
feat/templates-add-vercel
Open

feat(templates): add Vercel to Next.js + SaaS starters#3
MasonStation wants to merge 1 commit intomainfrom
feat/templates-add-vercel

Conversation

@MasonStation
Copy link
Copy Markdown
Contributor

Summary

  • Bug fix: the site advertised Vercel as part of nextjs-supabase-posthog (Templates.astro listed it in the stack), but the actual templates/nextjs-supabase-posthog/stack.toml had no [services.vercel] block — so stack init --template nextjs-supabase-posthog provisioned Supabase + PostHog only, with no deploy target. Site and template now agree.
  • Improvement: added [services.vercel] to supabase-posthog-sentry-resend (the maximal SaaS starter). Anyone running this stack ships to Vercel or Cloudflare in practice; Cloudflare has its own template, so Vercel is the right default here.
  • Other templates unchanged: nextjs-neon-vercel-sentry already had Vercel; cloudflare-turso-clerk and claude-agent-openai-anthropic legitimately don't deploy to Vercel.

Files changed

  • templates/nextjs-supabase-posthog/stack.toml — add [services.vercel]
  • templates/supabase-posthog-sentry-resend/stack.toml — add [services.vercel]
  • packages/site/src/lib/templates-ref.ts — add Vercel to both templates' services arrays + update displayName, tagline, blurb, goodFor
  • packages/site/src/components/Templates.astro — update SaaS template's stack + refNames + title + blurb (the nextjs-supabase-posthog entry already had Vercel here, only title/blurb tweaked)
  • packages/site/public/llms.txt, llms-full.txt — keep agent-facing catalogs in sync
  • CHANGELOG.md — entry under ## Unreleased

Verification

  • bun test packages/cli/src/__tests__/init.test.ts packages/core/src/__tests__/pipeline.test.ts packages/core/src/__tests__/config.test.ts → 14 pass, 0 fail
  • Smoke: stack init --template nextjs-supabase-posthog --noProvision --noInteractive writes [services.vercel] (alongside supabase, posthog) ✅
  • Smoke: stack init --template supabase-posthog-sentry-resend --noProvision --noInteractive writes [services.vercel] (alongside supabase, posthog, sentry, resend, stripe) ✅

Out of scope (caught while editing — file as separate issues)

  • packages/cli/README.md:12 references nextjs-supabase-posthog-sentry, a template that doesn't exist. Likely a typo for nextjs-supabase-posthog or supabase-posthog-sentry-resend.
  • DEMO_SCRIPT.md thumbnail/caption mention provisioning Supabase + PostHog under nextjs-supabase-posthog — once this PR lands, the demo will also provision Vercel; the demo copy may want updating before the next recording.

Test plan

  • bun test passes locally on the branch
  • stack init --template nextjs-supabase-posthog (or the SaaS one), interactive, picks up Vercel in the provision loop
  • packages/site build still succeeds (cd packages/site && bun run build)
  • CI green

🤖 Generated with Claude Code

The site catalog (Templates.astro) already advertised Vercel under
nextjs-supabase-posthog, but the underlying templates/.../stack.toml
was missing the service — so `stack init --template nextjs-supabase-
posthog` left users without a deploy target despite the marketing
promise. This patch closes that gap and adds Vercel to the maximal
SaaS starter as well, where it's the obvious deploy default.

- nextjs-supabase-posthog: + [services.vercel]
- supabase-posthog-sentry-resend: + [services.vercel]
- nextjs-neon-vercel-sentry: unchanged (already had Vercel)
- cloudflare-turso-clerk, claude-agent-openai-anthropic: unchanged
  (legitimately don't deploy to Vercel)

Mirror updates so all surfaces stay consistent: templates-ref.ts,
Templates.astro, llms.txt, llms-full.txt, CHANGELOG.

Verified `stack init --template <name> --noProvision` writes the
expected [services.vercel] block for both edited templates.

Assisted-By: ashlr-plugin <https://plugin.ashlr.ai>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ashlr-stack Ready Ready Preview, Comment Apr 27, 2026 6:58pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant